<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />  
<title>戈壁市集</title>
<style type="text/css">
body { font: normal 100% Helvetica, Arial, sans-serif; }  
h1 { font-size: 1.5em; }  
small { font-size: 0.875em; }  
    * {
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		-webkit-tap-highlight-color: transparent;
		-webkit-touch-callout: none; /*系统默认菜单被禁用*/
		-webkit-user-select: none; /*webkit浏览器*/
		-khtml-user-select: none; /*早期浏览器*/
		-moz-user-select: none; /*火狐*/
		-ms-user-select: none; /*IE10*/
		user-select: none;
	}

body{
	background:url(<?php echo $this->staticUrl;?>/images/bg.jpg)  no-repeat;
    background-size: 100%;
}
._div{
    margin: 88% auto auto auto;
    width: 15rem;
}      
.one{
margin-bottom: 1rem;
}
</style>
</head>
<body>
 <div class="_div">
        <a href="javascript:download();" class='one'><img style="width: 100%;margin-bottom: 1rem;" src="<?php echo $this->staticUrl;?>/images/consumer.png" alt=""></a>
<!--        <a href="javascript:download(2);" class='two'><img style="width: 100%;margin-bottom: 1rem;" src="--><?php //echo $this->staticUrl;?><!--/images/merchant.png" alt=""></a>-->
    </div>
    
  <script type="text/javascript">
	var u = navigator.userAgent;
	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
	var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// 	alert('是否是Android：'+isAndroid);
// 	alert('是否是iOS：'+isiOS);

	var IOS = '<?php echo $ios;?>';
	var Android = '<?php echo $android;?>';
	function download() {
		if (isAndroid) {
            window.location.href = Android;
		}else if (isiOS) {
            window.location.href = IOS;
		}
	}
</script>
</body>
</html>